﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlMaHangQuetKiemSoatSauXN.ascx.cs"
    Inherits="ControlUser_ControlMaHangQuetKiemSoatSauXN" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="uscTitleForm.ascx" TagName="uscTitleForm" TagPrefix="uc1" %>
<%@ Register Src="uscMsgBox.ascx" TagName="uscMsgBox" TagPrefix="uc2" %>
<style type="text/css">
    .AutoExtender
    {
        font-family: Verdana, Helvetica, sans-serif;
        font-size: .8em;
        font-weight: normal;
        border: solid 1px #006699;
        line-height: 20px;
        padding: 10px;
        background-color: White;
        margin-left: 10px;
    }
    .AutoExtenderList
    {
        border-bottom: dotted 1px #006699;
        cursor: pointer;
        color: Maroon;
    }
    .AutoExtenderHighlight
    {
        color: White;
        background-color: #006699;
        cursor: pointer;
    }
    #divwidth
    {
        width: auto !important;
    }
    #divwidth div
    {
        width: auto !important;
    }
    a
    {
        color: #333300;
        text-decoration: none;
    }
    input
    {
        font-family: verdana, arial, helvetica, sans-serif;
        font-size: 10px;
    }
    select
    {
        font-family: arial, verdana, helvetica,sans-serif;
        font-size: 11px;
    }
</style>
<uc1:uscTitleForm ID="uscTitleForm1" runat="server" Messeage="Mặt Hàng Cho Phép Quét Sau Khi Nhập Xuất" />
<%--<asp:Panel ID="Panel1" runat="server" BackColor="#EBEBEB" BorderStyle="None" Height="33px"
    Width="100%">--%>
&nbsp;
<asp:ImageButton ID="ImageButton3" runat="server" Height="25px" ImageUrl="~/image/New File.png"
    Width="25px" CausesValidation="false" />
&nbsp;
<asp:ImageButton ID="ImageButton2" runat="server" Height="25px" ImageUrl="~/image/Save.png"
    Width="25px" OnClick="ImageButton2_Click" />
&nbsp;<asp:ImageButton ID="imgXoa" runat="server" Height="25px" ImageUrl="~/image/Symbol-Delete.png"
    Width="25px" />
&nbsp;<asp:ImageButton ID="ImageButton4" Width="25px" CausesValidation="false" runat="server"
    Height="25px" ImageUrl="~/image/Find.png" />
<%--</asp:Panel>--%>
<br />
<asp:Label ID="lblKetQua" runat="server" Font-Italic="True" ForeColor="#3333CC"></asp:Label>
<br />
<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="450px"
    Width="906px">
    <cc1:TabPanel runat="server" HeaderText="Phiếu mua hàng" ID="TabPanel1">
        <HeaderTemplate>
            Nhập mã hàng
        </HeaderTemplate>
        <ContentTemplate>
            <div align="center">
                <table id="table1">
                    <tr>
                        <td width="21%">
                            Chi Nhánh
                        </td>
                        <td width="33%" colspan="2">
                            <asp:DropDownList ID="ddlChiNhanh" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlChiNhanh_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Mã hàng
                        </td>
                        <td width="21%">
                            <asp:TextBox ID="txtMaHang" runat="server" AutoPostBack="True" OnTextChanged="txtMaHang_TextChanged"></asp:TextBox>
                            <asp:RequiredFieldValidator ControlToValidate="txtMaHang" Display="None" ID="R1"
                                runat="server" ErrorMessage="Phải nhập mã  hàng"></asp:RequiredFieldValidator>
                            <cc1:ValidatorCalloutExtender TargetControlID="R1" ID="ValidatorCalloutExtender1"
                                runat="server" Enabled="True">
                            </cc1:ValidatorCalloutExtender>
                        </td>
                        <td width="9%">
                            &nbsp;
                        </td>
                        <td width="15%">
                            Tên hàng
                        </td>
                        <td>
                            <asp:TextBox ID="txtTenHang" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="5">
                            <asp:GridView ID="GridView1" runat="server" DataKeyNames="Itemkey" Width="540px"
                                OnRowDeleting="GridView1_RowDeleting" PageSize="5" AllowPaging="True" AutoGenerateColumns="False"
                                OnPageIndexChanging="GridView1_PageIndexChanging">
                                <Columns>
                                    <asp:BoundField DataField="Itemkey" HeaderText="Mã hàng" ReadOnly="True" />
                                    <asp:BoundField DataField="Description" HeaderText="Tên hàng" ReadOnly="True" />
                                    <asp:CommandField ButtonType="Image" CausesValidation="False" DeleteImageUrl="~/image/Symbol-Delete.png"
                                        DeleteText="Xóa" HeaderText="Xóa" ShowDeleteButton="True">
                                        <ControlStyle Height="25px" Width="25px" />
                                        <ItemStyle Height="25px" Width="25px" />
                                    </asp:CommandField>
                                </Columns>
                            </asp:GridView>
                            <br />
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </cc1:TabPanel>
</cc1:TabContainer>
<uc2:uscMsgBox ID="uscMsgBox1" runat="server" />
